package jtmcraft.game;

import jtmcraft.game.units.GameUnit;
import jtmcraft.game.units.GameUnitFactory.GameUnitType;

/**
 *
 * @author milosz
 */
public class CommunicationController extends Controller
{

    @Override
    public void attack(GameUnit attacker, GameUnit defender, double radian, double i)
    {
        System.out.println( attacker + " attacked: " + defender );
    }

    @Override
    public void hit(GameUnit attacker, GameUnit defender, int power)
    {
        System.out.println( attacker + " hit: " + defender + " with power: " + power );
        super.hit(attacker, defender, power);
    }

    @Override
    public void destroyUnit(GameUnit unit)
    {
        System.out.println( unit + " died");
        super.destroyUnit(unit);
    }

    @Override
    public void createBuildingUnit(GameUnitType type, int posX, int posY)
    {
        System.out.println( "Create building: " + type.name() );
        super.createBuildingUnit(type, posX, posY);
    }

    @Override
    public void createEnemyBuildingUnit(GameUnitType type, int posX, int posY, int enemyID) 
    {
        System.out.println( "Create building: " + type.name() );
        super.createEnemyBuildingUnit(type, posX, posY, enemyID);
    }

    @Override
    public void createEnemyMobileUnit(GameUnitType type, int posX, int posY, int enemyID) 
    {
        System.out.println( "Create unit: " + type.name() );
        super.createEnemyMobileUnit(type, posX, posY, enemyID);
    }

    @Override
    public void createEnemyPlayer(Player player) 
    {
        System.out.println( "Create enemy: " + player );
        super.createEnemyPlayer(player);
    }

    @Override
    public void createMobileUnit(GameUnitType type, int posX, int posY) 
    {
        System.out.println( "Create unit: " + type.name() );
        super.createMobileUnit(type, posX, posY);
    }

    @Override
    public void createNeutralGameUnit(GameUnitType type, int posX, int posY) 
    {
        System.out.println( "Create unit: " + type.name() );
        super.createNeutralGameUnit(type, posX, posY);
    }







}